package com.liu.mybatisPlus.wm.controller;

import com.liu.common.entity.ResponseResult;
import com.liu.mybatisPlus.wm.service.WmRivenAttributesKeyWordService;
import com.liu.qqRobot.wm.entity.qo.AddWmRivenAttributesKeyWordQO;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LiuChengLong
 * @since 2025-04-01
 */
@RestController
@RequestMapping("/wm/wmRivenAttributesKeyWord")
public class WmRivenAttributesKeyWordController {

    @Resource
    private WmRivenAttributesKeyWordService wmRivenAttributesKeyWordService;

    @CrossOrigin(origins = "http://localhost:5173", maxAge = 3600)
    @PostMapping("/add")
    public ResponseResult<Void> add(@RequestBody List<AddWmRivenAttributesKeyWordQO> qoList) {
        wmRivenAttributesKeyWordService.add(qoList);
        return ResponseResult.OK();
    }

}
